if ( s->cmos_data[RTC_REG_B] & RTC_AIE )
{
if ( ((s->cmos_data[RTC_SECONDS_ALARM] & 0xc0) == 0xc0 ||
- s->cmos_data[RTC_SECONDS_ALARM] == s->current_tm.tm_sec) &&
+ from_bcd(s, s->cmos_data[RTC_SECONDS_ALARM]) ==
+ s->current_tm.tm_sec) &&
((s->cmos_data[RTC_MINUTES_ALARM] & 0xc0) == 0xc0 ||
- s->cmos_data[RTC_MINUTES_ALARM] == s->current_tm.tm_mon) &&
+ from_bcd(s, s->cmos_data[RTC_MINUTES_ALARM]) ==
+ s->current_tm.tm_min) &&
((s->cmos_data[RTC_HOURS_ALARM] & 0xc0) == 0xc0 ||
- s->cmos_data[RTC_HOURS_ALARM] == s->current_tm.tm_hour) )
+ from_bcd(s, s->cmos_data[RTC_HOURS_ALARM]) ==
+ s->current_tm.tm_hour) )
{
s->cmos_data[RTC_REG_C] |= 0xa0;
hvm_isa_irq_deassert(s->vcpu->domain, s->irq);